/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2019年1月9日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package composite.test2;

/**
 * @Type DO
 * @Desc
 * @author 52489
 * @date 2019年1月9日
 * @Version V1.0
 */
public class DO {
    public static void main(String[] args) {

        Folder folder = new Folder("图片文件夹1");
        ImageFile file = new ImageFile("图片1.jpg");
        ImageFile file2 = new ImageFile("图片2.jpg");
        folder.add(file);
        folder.add(file2);

        Folder folder2 = new Folder("我的文件夹");
        VideoFile file3 = new VideoFile("视频1.avi");
        folder2.add(file3);
        folder2.add(folder);

        folder2.killVirus();

    }
}
